package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户卡金余额
 *
 * @author oxiny
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_charge_user")
public class ChargeUser extends Model<ChargeUser> {

    @TableId(type = IdType.INPUT)
    private Integer userId;

    @ApiModelProperty("卡金余额")
    private Integer balance;

    @ApiModelProperty("冻结余额")
    private Integer frozenBalance;

    @ApiModelProperty("总收入卡金")
    private Integer chargeIncome;

    @ApiModelProperty("总支出卡金")
    private Integer chargeOutcome;

    @Version
    private Integer version;
}
